package com.srb.sms.feign;

import com.srb.sms.feign.fallback.CoreUserInfoFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * value的值就是要调用的服务名字
 */
@FeignClient(value = "service-core",fallback = CoreUserInfoFeignClientFallback.class)
public interface ICoreUserInfoFeignClient {

    @GetMapping(value = "/api/core/userInfo/checkMobile/{mobile}")
    boolean checkMobile(@PathVariable(value = "mobile") String mobile);
}
